function RegisterAssistant(argFromPusher) {
}

RegisterAssistant.prototype = {
	setup: function() {
		Ares.setupSceneAssistant(this);
	},
	cleanup: function() {
		Ares.cleanupSceneAssistant(this);
	},
	button1Tap: function(inSender, event) {
		args = {
			account: {
				name: this.m_username.value,
				pass: "changeme",
				mail: this.m_email.value,
				roles:{"2":"authenticated user"}
			}
		};

		drupalService('user.save', args, this, function(data) {
			myAlert(this, this.m_username.value + " is created. Password is sent to " + this.m_email.value, function(){
				Mojo.Controller.stageController.popScene();
			});
		}.bind(this));
	}
};